package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AiVipTMapper;
import com.ruoyi.system.domain.AiVipT;
import com.ruoyi.system.service.IAiVipTService;

/**
 * 会员Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-08
 */
@Service
public class AiVipTServiceImpl implements IAiVipTService 
{
    @Autowired
    private AiVipTMapper aiVipTMapper;

    /**
     * 查询会员
     * 
     * @param id 会员主键
     * @return 会员
     */
    @Override
    public AiVipT selectAiVipTById(Long id)
    {
        return aiVipTMapper.selectAiVipTById(id);
    }

    /**
     * 查询会员列表
     * 
     * @param aiVipT 会员
     * @return 会员
     */
    @Override
    public List<AiVipT> selectAiVipTList(AiVipT aiVipT)
    {
        return aiVipTMapper.selectAiVipTList(aiVipT);
    }

    /**
     * 新增会员
     * 
     * @param aiVipT 会员
     * @return 结果
     */
    @Override
    public int insertAiVipT(AiVipT aiVipT)
    {
        aiVipT.setCreateTime(DateUtils.getNowDate());
        return aiVipTMapper.insertAiVipT(aiVipT);
    }

    /**
     * 修改会员
     * 
     * @param aiVipT 会员
     * @return 结果
     */
    @Override
    public int updateAiVipT(AiVipT aiVipT)
    {
        return aiVipTMapper.updateAiVipT(aiVipT);
    }

    /**
     * 批量删除会员
     * 
     * @param ids 需要删除的会员主键
     * @return 结果
     */
    @Override
    public int deleteAiVipTByIds(Long[] ids)
    {
        return aiVipTMapper.deleteAiVipTByIds(ids);
    }

    /**
     * 删除会员信息
     * 
     * @param id 会员主键
     * @return 结果
     */
    @Override
    public int deleteAiVipTById(Long id)
    {
        return aiVipTMapper.deleteAiVipTById(id);
    }
}
